home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-12-08 | 36.4 KB | 1,032 lines | [TEXT/R*ch] |
- C.S.M.P. Digest Thu, 02 Jul 92 Volume 1 : Issue 129
-
- Today's Topics:
-
- What is a 'Bus error'?
- System 7 crashes at weird times. New Virus?
- Amusing MPW C v3.2 Error Messages
- Serial i/o on the PB170?
- screen shot program needed
- How does Script Manager affect File Manager?
- Sound hardware question
- Caps-lock <=> Ctrl on the powerbook keyboard
- Sound Channel Failure
- Looking for Showinit
-
-
-
- -------------------------------------------------------
-
- From: ebido@bio.vu.nl (Etienne Bido)
- Subject: What is a 'Bus error'?
- Date: 29 May 92 11:54:46 GMT
- Organization: VU Biology, Amsterdam, The Netherlands
-
- I just bought a Mac IIcx, a great machine, but I'm getting sick of
- all those 'Bus errors'. What is a bus error???
-
- sysconfig:
- MacIIcx
- 20 MB RAM (so I'm running mode 32 to use them)
- 13" Apple rgb with apple display card
- system 7
-
- I noticed that some of these errors dissapear when I turn mode32 off,
- but there are still to many bus errors left.
-
- any info would be appreciated.
-
- - --
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- Etienne Bido || ebido@bio.vu.nl
- Vrye Universiteit || bido@chem.vu.nl
- Amsterdam
-
- +++++++++++++++++++++++++++
-
- From: werner@cs.utexas.edu (Werner Uhrig)
- Date: 29 May 92 13:18:05 GMT
- Organization: CS Dept, University of Texas at Austin
-
-
- ebido@bio.vu.nl (Etienne Bido) writes:
- > I just bought a Mac IIcx, a great machine, but I'm getting sick of
- > all those 'Bus errors'. What is a bus error???
-
- >20 MB RAM (so I'm running mode 32 to use them)
- >system 7
-
- >I noticed that some of these errors dissapear when I turn mode32 off,
- >but there are still to many bus errors left.
-
- a Bus Error is when a hardware bug encounters a software
- bug in the pressence of too much RAM ....
-
- <chuckle>....
- - --
- werner@cs.utexas.edu | ..!uunet!cs.utexas.edu!werner | werner@UTXVM.bitnet
-
- "Free Advice and Opinions is our specialty. Refunds Available"
-
- +++++++++++++++++++++++++++
-
- From: pegasus@leland.Stanford.EDU (Betty Lee)
- Date: 29 May 92 22:16:04 GMT
- Organization: Stanford University -- Electrical Engineering
-
- ebido@bio.vu.nl (Etienne Bido) writes:
-
- + I just bought a Mac IIcx, a great machine, but I'm getting sick of
- + all those 'Bus errors'. What is a bus error???
- +
- + I noticed that some of these errors dissapear when I turn mode32 off,
- + but there are still to many bus errors left.
-
- Some bus errors happen when a program isn't 32-bit clean and you're running
- 32-bit mode. Some happen (on my computer at least) when the program looks
- for a non-existant FPU. Some just happen. If you install Macsbug, you might
- get more explicit error messages.
-
- - --
- Betty Lee | The main difference between a User and a Hacker:
- P. O. Box 5748 | A User buys a faster computer to spend
- Stanford, CA 94309 | _less_ time with it. Happy hacking!
- Pegasus@Leland.Stanford.EDU | -- From rec.humor.funny
-
- +++++++++++++++++++++++++++
-
- From: edw@caligula.cts.com (Ed Watkeys)
- Date: Sat, 30 May 92 19:57:16 EDT
- Organization: Distant Software
-
-
- In article <1992May29.221604.7005@leland.Stanford.EDU> (comp.sys.mac.system,comp.sys.mac.programmer), pegasus@leland.Stanford.EDU (Betty Lee) writes:
- >
- > Some bus errors happen when a program isn't 32-bit clean and you're running
- > 32-bit mode. Some happen (on my computer at least) when the program looks
- > for a non-existant FPU. Some just happen. If you install Macsbug, you might
- > get more explicit error messages.
-
- Another nice way to get a bus error is to reference odd memory addresses --
- beware of pointer arithmetic!
-
- Ed
-
- - --
- Ed Watkeys, Sys Admin. "...The errors of great men are more venerable
- Distant Software because they are more fruitful than the truths
- edw@caligula.cts.com of little men..." -- Friedrich Nietzsche
-
- +++++++++++++++++++++++++++
-
- From: carl@udwarf.tymnet.com (Carl Baltrunas & Cherie Marinelli 1.5v4)
- Date: 1 Jun 92 10:13:35 GMT
- Organization: Catalyst Art
-
-
- In article <01050133.4r3kra@caligula.cts.com> (comp.sys.mac.system,comp.sys.mac.programmer), edw@caligula.cts.com (Ed Watkeys) writes:
- >
- > In article <1992May29.221604.7005@leland.Stanford.EDU> (comp.sys.mac.system,comp.sys.mac.programmer), pegasus@leland.Stanford.EDU (Betty Lee) writes:
- > >
- > > Some bus errors happen when a program isn't 32-bit clean and you're running
- > > 32-bit mode. Some happen (on my computer at least) when the program looks
- > > for a non-existant FPU. Some just happen. If you install Macsbug, you might
- > > get more explicit error messages.
- >
- > Another nice way to get a bus error is to reference odd memory addresses --
- > beware of pointer arithmetic!
- >
- Ok... what I'd like to know is can anyone tell me what I should look at
- when a buss error occurs. I'm running Macsbug, and my machine has had the
- infamous buss error many many times since I started using system 7.0. I'm
- now running system 7.0 with tuneup 1.1.1 and I have had what seems to be
- the same couple of buss errors regardless of whether I have 32-bit on/off,
- whether I have VM on/off.
-
- The errors all seem to be at -stripaddress +08C4 (or offset +08B4)... and
- from various extensions, mostly ATM 2.0.3 (which is supposed to be 32-bit
- clean).
-
- -stripaddress+08B4/ MOVEM.L D0/A0,-(A7)
-
- -stripaddress+08C4/ MOVE.L (A1),$0008(A6)
- A1/ FFFFFFFF
- A6/ 00363DF8
-
- I didn't record the registers from the first one listed here, but the
- second one appears to be referencing 'FFFFFFFF' which is not a longword
- address. That MAY be THE problem... but, what I'm most confused about
- is that -stripaddress is in the kernel OS (or so I assume) and user progs
- would not be calling it directly... or would they? [Q: for c.s.m.programmer]
-
- So what inside the OS keeps bombing? Is there anything I should do, or can
- do to determine if it is the app that is running that is at fault, or some
- thing wrong in the OS/ROM? Anyone know who I can send the info to if it
- will help Apple/Software-companies solve problems.
-
- It seems sporadic... the same operation done in exactly the same way may
- cause the problem, yet again... it may not. Sometimes it appears to be
- very reproduceable... (I have such a case now with a copy of Compactor 1.21
- but that might be solved by upgrading to the newest version of Compact Pro).
-
- HELP?
-
- - -Carl
-
- Redirect followups to the appropriate place, but I usually only have time
- for c.s.m.system and not c.s.m.programmer. E-mail is fine, and c.s.m.system
- if others are interested and can help out.
-
-
-
- Carl A Baltrunas - Catalyst Art - carl@udwarf.tymnet.com
- Cherie Marinelli - Bijoux - cherie%udwarf@tymix.tymnet.com
- UUCP: uunet!oliveb!tymix!udwarf!{carl or cherie}
- {carl or cherie}@udwarf.UUCP (if these fail: carl@tymnet.com)
-
- ---------------------------
-
- From: kevin@crash.cts.com (Kevin Hill)
- Subject: System 7 crashes at weird times. New Virus?
- Date: 25 May 92 10:39:49 GMT
- Organization: Crash TimeSharing, El Cajon, CA
-
-
- I am currently running system 7.0.1 with the following extensions:
-
-
- Think Back, Magic Apple, switch. CDEV's that I am running are as follows:
- SuperClock!...
- I have a SE/30 with 5megs of memory, a 40meg hard drive and nothing else.
- The problem that I have is when I am using scroll bars, or using the menus, the
- mac crashes with no warning. It seems to do this randomly. What I am wondering
- is if there is a virus out that disenfectant does not check for yet. My version
- of Disenfectant is 2.8.
- I have had this error with all my extensions and CDEV's disabled. Can anyone
- shed some light on this?
- Thanks!
- -Kevin Hill
-
- +++++++++++++++++++++++++++
-
- From: kpmiller@uokmax.ecn.uoknor.edu (Kent P Miller)
- Organization: Engineering Computer Network, University of Oklahoma, Norman, OK, USA
- Date: Mon, 25 May 1992 20:33:11 GMT
-
- In article <1992May25.103949.15180@crash.cts.com> kevin@crash.cts.com (Kevin Hill) writes:
- >mac crashes with no warning. It seems to do this randomly. What I am wondering
- >is if there is a virus out that disenfectant does not check for yet. My version
- >of Disenfectant is 2.8.
- > I have had this error with all my extensions and CDEV's disabled. Can anyone
-
- I will answer you and try to save the guy who usually twists off on this
- a stress-induced heart attack.
-
- 1. Don't assume that since your mac is crashing that it is a new virus.
- This is bad for many reasons. I'll share my personal experience. If one
- of my client's computers crash, they say, "Maybe we have a virus", even
- though none of them own floppy disks and they have no access to the outside
- computer world. Don't propagate this by causing virus panic.
-
- 2. Don't post this in the programming newsgroup. It doesn't belong here.
- Since this is the only mac newsgroup I regularly read, I don't care where
- else you post it. Maybe in comp.sys.mac.misc.
-
- Now, if you have rebooted with all your extensions off and you still crash,
- try booting from floppy. If that works, reinstall a fresh system. If you
- are still crashing, get another copy of the system install disks from
- somewhere else.
-
- Good Luck!
-
- Kent
-
- - --
- - -----------------------
- Kent Miller
- kpmiller@uokmax.ecn.uoknor.edu
- - -----------------------
-
- +++++++++++++++++++++++++++
-
- From: Jeremiah.Blatz@dartmouth.edu (Jeremiah Blatz)
- Date: 2 Jun 92 01:52:20 GMT
- Organization: Dartmouth College, Hanover, NH
-
- In article <1992May25.103949.15180@crash.cts.com>
- kevin@crash.cts.com (Kevin Hill) writes:
-
- > I am currently running system 7.0.1 with the following extensions:
- >
- >
- > Think Back, Magic Apple, switch. CDEV's that I am running are as follows:
- > SuperClock!...
-
- There's ine more extension that you should have: System 7.0 Tuner. This
- is available from "your official Apple dealer," It's a big help.
-
- Jeremiah
-
- _______________________
- / / / \ / \ /
- / /___ /___/ /___/ /
- / / / \ / / /
- \__/ /___ / \ /___/ /___
-
- ---------------------------
-
- From: killer@wimpy (karl kowalski)
- Subject: Amusing MPW C v3.2 Error Messages
- Date: 27 May 92 04:52:45 GMT
- Organization: The Aerospace Corporation; El Segundo, CA
-
- Hi!
-
- This may be a repeat of an earlier post, but what the heck.
-
- Has anyone ever seen the following out of MPW C v3.2:
-
- ### Error 32 ...And the lord said, 'lo, there shall only be case or
- default labels inside a switch statement'
-
- - - or -
-
- ### Error 199 type in (cast) must be scalar; ANSI 3.3.4; page 39, lines
- 10-11 (I know you don't care, I'm just trying to annoy you)
-
- ?
-
- Any other interesting error messages?
-
- Anyone?
-
- I have to admit, they are quite amusing. And actually on occasion, worth
- the laughs.
-
- Cheers,
-
- Karl G Kowalski
- killer@aerospace.aero.org
- killer@wimpy.aero.org (NeXTmail)
-
- +++++++++++++++++++++++++++
-
- From: rdclark@Apple.COM (Richard Clark)
- Date: 27 May 92 16:52:18 GMT
- Organization: Apple Computer Inc., Cupertino, CA
-
- killer@wimpy (karl kowalski) writes:
-
- >Has anyone ever seen the following out of MPW C v3.2:
-
- >### Error 32 ...And the lord said, 'lo, there shall only be case or
- >default labels inside a switch statement'
- >- or -
- >### Error 199 type in (cast) must be scalar; ANSI 3.3.4; page 39, lines
- >10-11 (I know you don't care, I'm just trying to annoy you)
-
- >Any other interesting error messages?
-
- The error messages are stored as STR resources -- just type
- DeRez {Tools}C -only 'STR ' {RIncludes}Types.r
- for a complete list.
-
- ...Richard
- - --
- Richard Clark Instructor/Course Designer, Developer University Apple Comp.
-
- +++++++++++++++++++++++++++
-
- From: flaps@dgp.toronto.edu (Alan J Rosenthal)
- Organization: Dynamic Graphics Project, University of Toronto
- Date: 30 May 92 18:52:29 GMT
-
-
- ok, here's all the weird ones:
-
- String literal too long (I let you have 512 characters, that's 3 more than ANSI
- said I should)
-
- ...And the lord said, 'lo, there shall only be case or default labels inside a
- switch statement'
-
- a typedef name was a complete surprise to me at this point in your program
-
- 'Volatile' and 'Register' are not miscible
-
- This struct already has a perfectly good definition
-
- This union already has a perfectly good definition
-
- This enum already has a perfectly good definition
-
- type in (cast) must be scalar; ANSI 3.3.4; page 39, lines 10-11 (I know you
- don't care, I'm just trying to annoy you)
-
- This array has no size, and that's bad
-
- Can't cast a void type to type void (because the ANSI spec. says so, that's why)
-
- Huh ?
-
- can't go mucking with a 'void *'
-
- we already did this function
-
- This label is the target of a goto from outside of the block containing this
- label AND this block has an automatic variable with an initializer AND your
- window wasn't wide enough to read this whole error message
-
- Call me paranoid but finding '/*' inside this comment makes me suspicious
-
- This function has an explicit return type and deserves a return value
-
- Invalid formal argument -- did you mean pointer to function here?
-
- You can't have an array of functions -- did you mean pointers to functions?
-
- Too many errors on one line (make fewer)
-
- Symbol table full - fatal heap error; please go buy a RAM upgrade from your
- local Apple dealer
-
- ---------------------------
-
- From: jp57+@andrew.cmu.edu (Jefferson Provost)
- Subject: Serial i/o on the PB170?
- Date: 27 May 92 20:10:57 GMT
- Organization: Psychology, Carnegie Mellon, Pittsburgh, PA
-
-
- Hey net.mac.hackers,
-
- I have an application that communicates through the modem port with an
- external device. The program seems to run without problems (with
- respect to the serial i/o) on all the platforms we've tried it on except
- for the PowerBook 170. We haven't tried on any other PowerBooks but we
- have tried it on the Plus, Classic, IIsi, IIx, IIci, II, IIfx, and
- Quadra 700, all do the serial I/O without any problem.
-
- With the PB 170, however, things have been strange. First I was having
- problems because I forgot to switch from internal to external modem.
- After I fixed that, the program would crash (hang, or crash into
- MacsBug) as soon as I write to the external device the first time. I'm
- writing with PBWrite, asynchronously, and as soon as my code calls the
- trap, I crash.
-
- I haven't run into this behavior at all with other machines. Is there
- something I need to know about the PowerBook serial port or serial
- driver and deal with?
-
- Any help will be appreciated,
-
- Thanx,
-
- Jeff
-
- - -----
- |Jefferson Provost | jp57+@andrew.cmu.edu
- | Research Programmer - PsyScope Project | (412) 268-3662
- | Department of Psychology | Baker Hall 331g
- | Carnegie Mellon, Pittsburgh. PA 15213 |
-
- +++++++++++++++++++++++++++
-
- From: kpmiller@uokmax.ecn.uoknor.edu (Kent P Miller)
- Organization: Engineering Computer Network, University of Oklahoma, Norman, OK, USA
- Date: Sun, 31 May 1992 13:43:44 GMT
-
- In article <Ie8ynFe00iUz04dEYk@andrew.cmu.edu> jp57+@andrew.cmu.edu (Jefferson Provost) writes:
- >After I fixed that, the program would crash (hang, or crash into
- >MacsBug) as soon as I write to the external device the first time. I'm
- >writing with PBWrite, asynchronously, and as soon as my code calls the
-
- Jeff,
-
- Tried to mail you, but I couldn't.
-
- I don't know exactly what the problem is, but I can tell you that if the
- PowerBook has the battery saver on, the power to the external serial ports
- is not enabled.
-
- When they released the PowerBooks and the Quadras, they (Apple) released a
- set of tech notes about developing for them. These may (or may not) have
- what you need in them.
-
- You might also check the Power Manager chapter of Inside Mac VI (31). On
- page 18, it describes 5 procedures used to control power to the serial ports.
- procedure AOn (turns on internal modem and power to portA)
- procedure AOnIgnoreModem; (turns on power to PortA, leaves internal modem off)
- procedure BOn (turns on printer port)
- procedure AOff; procedure BOff; (turns the ports off)
-
- Hope this helps.
-
- Kent
-
- - --
- - -----------------------
- Kent Miller
- kpmiller@uokmax.ecn.uoknor.edu
- - -----------------------
-
- ---------------------------
-
- From: urritche@queen.mcs.drexel.edu (Ralph Paul Ritchey)
- Subject: screen shot program needed
- Date: 31 May 92 17:44:38 GMT
- Organization: Drexel University
-
- Hello all:
-
- I am looking for a PD or shareware program which lets you take
- screen shots while menus are pulled down etc. Anyone
- who knows of one, I would appreciate getting info on it (where
- I can get it, etc.). Thanks for the help in advance.
-
- Ralph Ritchey
- urritche@mcs.drexel.edu
-
- +++++++++++++++++++++++++++
-
- From: asunta@convex.csc.FI (Miika Asunta)
- Date: 31 May 92 20:06:42 GMT
- Organization: Finnish Academic and Research Network Project - FUNET
-
- In <1992May31.174438.2374@mcs.drexel.edu>
- urritche@queen.mcs.drexel.edu (Ralph Paul Ritchey) writes:
-
- >Hello all:
- >I am looking for a PD or shareware program which lets you take
- >screen shots while menus are pulled down etc. Anyone
- >who knows of one, I would appreciate getting info on it (where
- >I can get it, etc.). Thanks for the help in advance.
-
- The best one is 'Capture'. It's commercial and available at your
- local dealer.
-
- Miika
- - --
- Miika Asunta
- asunta@convex.csc.fi Double Bass Player
- tel. +358-0-494 093 Macintosh Programmer
-
- +++++++++++++++++++++++++++
-
- From: s442070@nexus.yorku.ca (Tomas Hansson)
- Organization: York University, Toronto, Canada
- Date: Sun, 31 May 1992 21:31:52 GMT
-
- In article <1992May31.200642.4347@nic.funet.fi> asunta@convex.csc.FI (Miika Asunta) writes:
- >In <1992May31.174438.2374@mcs.drexel.edu>
- >urritche@queen.mcs.drexel.edu (Ralph Paul Ritchey) writes:
- >
- >>Hello all:
- >>I am looking for a PD or shareware program which lets you take
- >>screen shots while menus are pulled down etc. Anyone
- >>who knows of one, I would appreciate getting info on it (where
- >>I can get it, etc.). Thanks for the help in advance.
- >
- >The best one is 'Capture'. It's commercial and available at your
- >local dealer.
-
- Why not settle for some shareware?! Try out Flash-It 2.2!!
- It works just fine AND will capture menus etc. It can be found on
- sumex-aim.stanford.edu in the cp directory.
-
- /Tomas
- s442070@nexus.yorku.ca
-
-
- +++++++++++++++++++++++++++
-
- From: keith@taligent.com (Keith Rollin)
- Date: 1 Jun 92 00:40:54 GMT
- Organization: Taligent
-
- In article <1992May31.174438.2374@mcs.drexel.edu>, urritche@queen.mcs.drexel.edu
- (Ralph Paul Ritchey) writes:
- >
- > Hello all:
- >
- > I am looking for a PD or shareware program which lets you take
- > screen shots while menus are pulled down etc. Anyone
- > who knows of one, I would appreciate getting info on it (where
- > I can get it, etc.). Thanks for the help in advance.
- >
-
- In article <1992May31.200642.4347@nic.funet.fi>, asunta@convex.csc.FI (Miika
- Asunta) writes:
- >
- > The best one is 'Capture'. It's commercial and available at your
- > local dealer.
- >
-
- In article <1992May31.213152.10830@newshub.ccs.yorku.ca>, s442070@nexus.yorku.ca
- (Tomas Hansson) writes:
- >
- > Why not settle for some shareware?! Try out Flash-It 2.2!!
- > It works just fine AND will capture menus etc. It can be found on
- > sumex-aim.stanford.edu in the cp directory.
-
-
- Ah, you're all trying to milk this poor boy. :-) Step right up to
- ftp.apple.com and get some freeware that includes the source code. It's in
- /dts/mac/sc/sc-022-screenfkey.hqx.
-
- - --
- Keith Rollin
- Phantom Programmer
- Taligent, Inc.
-
-
- ---------------------------
-
- From: walkerj@math.scarolina.edu (Jim Walker)
- Subject: How does Script Manager affect File Manager?
- Organization: USC Department of Computer Science
- Date: 30 May 92 21:56:58 GMT
-
- When one is possibly running under a non-Roman script system, can one still
- count on a file name not containing a colon (:), and being able to use
- colons to separate the parts of a pathname?
-
- - --
-
- -- Jim Walker USC Dept. of Math. walkerj@math.scarolina.edu
-
- +++++++++++++++++++++++++++
-
- From: edw@caligula.cts.com (Ed Watkeys)
- Date: Mon, 1 Jun 92 00:50:54 EDT
- Organization: Distant Software
-
-
- In article <walkerj.707263018@milo.math.scarolina.edu> (comp.sys.mac.programmer), walkerj@math.scarolina.edu (Jim Walker) writes:
- > When one is possibly running under a non-Roman script system, can one still
- > count on a file name not containing a colon (:), and being able to use
- > colons to separate the parts of a pathname?
-
- I think it's because of stuff like this that Apple tells you not to play around
- with pathnames this way. If you're running under A/UX, the slash is the separator,
- so you're in trouble if you're assuming that colons separate directories in
- a pathname. This is in Inside Macintosh *somewhere*, if I recall correctly.
-
- Ed
-
- - --
- Ed Watkeys, Sys Admin. "...The errors of great men are more venerable
- Distant Software because they are more fruitful than the truths
- edw@caligula.cts.com of little men..." -- Friedrich Nietzsche
-
- ---------------------------
-
- From: potts@itl.itd.umich.edu (Paul Potts)
- Subject: Sound hardware question
- Date: 28 May 92 13:46:08 GMT
- Organization: Instructional Technology Laboratory, University of Michigan
-
- I suspect the answer to this question is "no way," but I thought I'd ask
- anyway...
-
- I have code to open channels, play digitized sound, and all that. I'm a
- little unclear on the stereo capabilities of certain Mac models. I-M 6 seems
- to be pretty explicit, so I guess what I'm asking is "is I-M 6 absolutely
- correct, or is there a way around this?" Re:
-
- - - Is there a way that I can open a sampled channel on the left stereo side
- only, play a sound, close the channel, then open a sampled channel on the
- right, and play a sound through the right stereo side only? Will this work
- on some Macintosh models and not others? (which models will it work on?)
-
- - - On those models which combine the stereo signals into a mono output, where
- in the computer is this done? What I'm asking translates to "If I'm willing
- to void my warranty and risk electric shock and certain doom, is it possible
- to un-combine the combined stereo signals and route them to separate left
- and right channels?" (If the signals are combined on-chip, the answer is
- probably no; if there is a piece of wiring somewhere that links them, then
- I can probably modify it. I'm fairly handy with a soldering gun.)
-
- Please don't just say "read I-M 6." I've read it, and it seems pretty clear,
- but I'm trying to see if there is a way around it. I'd like to be able to
- play sounds separately in the left and right channels of a IIcx. Fidelity
- isn't that important; noise floor isn't that important. This is to assist
- someone with an engineering experiment for an academic department.
-
- - --
- Paul R. Potts, Software Designer --- potts@itl.itd.umich.edu <--- me!
-
- +++++++++++++++++++++++++++
-
- From: REEKES@applelink.apple.com (Jim Reekes)
- Date: 28 May 92 23:53:17 GMT
- Organization: Apple Computer, Inc.
-
- In article <1992May28.134608.6778@terminator.cc.umich.edu>, potts@itl.itd.umich.edu (Paul Potts) writes:
- >
- > I suspect the answer to this question is "no way," but I thought I'd ask
- > anyway...
- >
- > I have code to open channels, play digitized sound, and all that. I'm a
- > little unclear on the stereo capabilities of certain Mac models. I-M 6 seems
- > to be pretty explicit, so I guess what I'm asking is "is I-M 6 absolutely
- > correct, or is there a way around this?" Re:
- >
- > - Is there a way that I can open a sampled channel on the left stereo side
- > only, play a sound, close the channel, then open a sampled channel on the
- > right, and play a sound through the right stereo side only? Will this work
- > on some Macintosh models and not others? (which models will it work on?)
- >
- > - On those models which combine the stereo signals into a mono output, where
- > in the computer is this done? What I'm asking translates to "If I'm willing
- > to void my warranty and risk electric shock and certain doom, is it possible
- > to un-combine the combined stereo signals and route them to separate left
- > and right channels?" (If the signals are combined on-chip, the answer is
- > probably no; if there is a piece of wiring somewhere that links them, then
- > I can probably modify it. I'm fairly handy with a soldering gun.)
- >
- > Please don't just say "read I-M 6." I've read it, and it seems pretty clear,
- > but I'm trying to see if there is a way around it. I'd like to be able to
- > play sounds separately in the left and right channels of a IIcx. Fidelity
- > isn't that important; noise floor isn't that important. This is to assist
- > someone with an engineering experiment for an academic department.
-
- The Mac currently never mixes a stereo source into a mono output. All machines
- that support stereo in hardware are always playing in stereo. Some machines
- will play both the left and right outputs to the internal speaker. The
- external speaker jack is always the stereo output, if stereo is available.
-
- Use Gestalt to determine if stereo and mixing to the internal speaker is
- available on your machine. There no such test avalable for System 6.0.x
- users.
-
- - -----------------------------------------------------------------------
- Jim Reekes, Polterzeitgeist | Macintosh Toolbox Engineering
- | Sound Manager Expert
- Apple Computer, Inc. | "All opinions expressed are mine, and do
- 20525 Mariani Ave. MS: 81-KS | not necessarily represent those of my
- Cupertino, CA 95014 | employer, Apple Computer Inc."
-
- +++++++++++++++++++++++++++
-
- From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
- Organization: Kalamazoo College
- Date: Fri, 29 May 1992 09:46:14 GMT
-
- potts@itl.itd.umich.edu (Paul Potts) writes:
- >
- >I suspect the answer to this question is "no way," but I thought I'd ask
- >anyway...
- >
- >- Is there a way that I can open a sampled channel on the left stereo side
- >only, play a sound, close the channel, then open a sampled channel on the
- >right, and play a sound through the right stereo side only?
-
- No way! (Heh heh.)
-
- Can you, for example:
-
- SndChannelPtr mySndChannelPtr = NULL;
- FailOSErr( SndNewChannel(&mySndChannelPtr, sampledSynth,
- initChanLeft,
- NULL );
- sendSndToChannelWithBufferCmd(mySndChannelPtr);
- pauseUntilSoundIsDone();
- FailOSErr( SndDisposeChannel(mySndChannelPtr, TRUE) );
- FailOSErr( SndNewChannel(&mySndChannelPtr, sampledSynth,
- initChanRight,
- NULL );
- sendSndToChannelWithBufferCmd(mySndChannelPtr);
- pauseUntilSoundIsDone();
- FailOSErr( SndDisposeChannel(mySndChannelPtr, TRUE) );
-
- >Please don't just say "read I-M 6."
-
- Read I-M 6! (Heh heh.)
-
- As far as I know, this'll work on any machine with stereo. Corrections
- are welcome...
- - --
- Jamie McCarthy Internet: k044477@kzoo.edu AppleLink: j.mccarthy
- When I read the 486 manual, I was amazed that they had got all this
- working. Then I got to the bug list in the back, and said, "Oh.
- They _didn't_ get it all working." - Mitch Bradley
-
- +++++++++++++++++++++++++++
-
- From: potts@itl.itd.umich.edu (Paul Potts)
- Organization: Instructional Technology Laboratory, University of Michigan
- Date: Fri, 29 May 92 15:54:09 GMT
-
- In article <1992May29.094614.338@hobbes.kzoo.edu> k044477@hobbes.kzoo.edu (Jamie R. McCarthy) writes:
- >potts@itl.itd.umich.edu (Paul Potts) writes:
- >>
- >>I suspect the answer to this question is "no way," but I thought I'd ask
- >>anyway...
- >>
-
- Thanks to everyone who sent me corrections and code. For some reason even
- though I had read I-M 6, I was under the impression that the IIcx and
- a couple of others mixed the stereo sound to mono output to the headphone
- jack. I was confused. Someone I'm doing some consulting for was telling me
- that it wasn't working, and my poor memory did the rest. Thanks for the
- assistance.
-
-
- - --
- ---> Just when did the idea that we ought to make minor changes in
- our industrial activities in order to save endangered species become
- "environmental extremism," and the willingness to fight become "eco-terrorism?"
- Paul R. Potts, Software Designer --- potts@itl.itd.umich.edu <--- me!
-
- +++++++++++++++++++++++++++
-
- From: REEKES@applelink.apple.com (Jim Reekes)
- Date: 1 Jun 92 20:38:59 GMT
- Organization: Apple Computer, Inc.
-
- In article <1992May29.094614.338@hobbes.kzoo.edu>, k044477@hobbes.kzoo.edu (Jamie R. McCarthy) writes:
- >
- > potts@itl.itd.umich.edu (Paul Potts) writes:
- > >
- > >I suspect the answer to this question is "no way," but I thought I'd ask
- > >anyway...
- > >
- > >- Is there a way that I can open a sampled channel on the left stereo side
- > >only, play a sound, close the channel, then open a sampled channel on the
- > >right, and play a sound through the right stereo side only?
- >
- > No way! (Heh heh.)
- >
- > Can you, for example:
- >
- > SndChannelPtr mySndChannelPtr = NULL;
- > FailOSErr( SndNewChannel(&mySndChannelPtr, sampledSynth,
- > initChanLeft,
- > NULL );
- > sendSndToChannelWithBufferCmd(mySndChannelPtr);
- > pauseUntilSoundIsDone();
- > FailOSErr( SndDisposeChannel(mySndChannelPtr, TRUE) );
- > FailOSErr( SndNewChannel(&mySndChannelPtr, sampledSynth,
- > initChanRight,
- > NULL );
- > sendSndToChannelWithBufferCmd(mySndChannelPtr);
- > pauseUntilSoundIsDone();
- > FailOSErr( SndDisposeChannel(mySndChannelPtr, TRUE) );
- >
- > >Please don't just say "read I-M 6."
- >
- > Read I-M 6! (Heh heh.)
- >
- > As far as I know, this'll work on any machine with stereo. Corrections
- > are welcome...
-
- You should be able to use the reInitCmd instead of closing and opening
- a channel. I haven't tried it myself, but it should work.
-
-
-
-
- - -----------------------------------------------------------------------
- Jim Reekes, Polterzeitgeist | Macintosh Toolbox Engineering
- | Sound Manager Expert
- Apple Computer, Inc. | "All opinions expressed are mine, and do
- 20525 Mariani Ave. MS: 81-KS | not necessarily represent those of my
- Cupertino, CA 95014 | employer, Apple Computer Inc."
-
-
-
- ---------------------------
-
- From: kishon-amir@CS.YALE.EDU (amir kishon)
- Subject: Caps-lock <=> Ctrl on the powerbook keyboard
- Organization: Yale University Computer Science Dept., New Haven, CT 06520-2158
- Date: Sun, 31 May 1992 21:36:36 GMT
-
- Does anyone have a suggestion on how to exchange the caps-lock key
- with the ctrl key on a powerbook keyboard. I tried changing the 'KCHR'
- table - this indeed exchanged their mapping but the remapped ctrl key gets
- 'locked' when pressed.
-
- Thanks,
-
- - --
- Amir Kishon ARPA: kishon-amir@cs.yale.edu
- Yale University, Computer Science Dept. kishon-amir@yale.arpa
- P.O.Box 2158 Yale Station BITNET: kishon-amir@yalecs.bitnet
- New Haven, CT. 06520-2158 UUCP: decvax!yale!kishon-amir
-
- +++++++++++++++++++++++++++
-
- From: blob@Apple.COM (Brian Bechtel)
- Date: 1 Jun 92 00:43:48 GMT
- Organization: Apple Computer Inc., Cupertino, CA
-
- kishon-amir@CS.YALE.EDU (amir kishon) writes:
-
- >Does anyone have a suggestion on how to exchange the caps-lock key
- >with the ctrl key on a powerbook keyboard. I tried changing the 'KCHR'
- >table - this indeed exchanged their mapping but the remapped ctrl key gets
- >'locked' when pressed.
-
- You can't change the behavior of the caps lock key on the PowerBook
- keyboard. You can change the mapping of the keyboard, but the caps lock
- key has special behavior built into the keyboard processor.
-
- - --Brian Bechtel blob@apple.com "My opinion, not Apple's"
-
- ---------------------------
-
- From: bmor@kimbark.uchicago.edu (Brad Morris)
- Subject: Sound Channel Failure
- Date: 28 May 92 21:01:11 GMT
- Organization: University of Chicago Computing Organizations
-
- I have noticed a failure of the sound channel under the following
- circumstances:
-
- My program plays sounds using a simple routine. First it sends a
- quietCmd to make sure the channel has stopped playing (important because
- this is a game and the sound has to be cut off to let the next sound play).
- Next, I send a bufferCmd with a pointer to my sampled sound. So far so
- good. Everything works until I try to jam too many of these at a single
- time. This is caused by the user pressing multiple keys on the keyboard
- at once. If I try to jam things too tightly, the channel stops playing
- sounds. If I examine the channel when this has happened, I find that the
- flags field is always set to 7 and qHead and qTail point to appropriate
- sounds which should be playing but are not. What I ended up doing is to
- check for flag=7 and something in the buffer (qHead > -1) and deallocating
- and reallocating the sound channel if this happens. This seems to work.
- This leaves me with two good questions. Is there any place that the SndChannel
- structure is well documented (not just used internally stuff). And two, has
- anyone else seen this and what did they do. Is there something less drastic
- than allocation/deallocation?
-
- Thanks-
-
- Brad Morris
- b-morris@uchicago.edu
-
- +++++++++++++++++++++++++++
-
- From: REEKES@applelink.apple.com (Jim Reekes)
- Date: 1 Jun 92 20:35:54 GMT
- Organization: Apple Computer, Inc.
-
- In article <1992May28.210111.3746@midway.uchicago.edu>, bmor@kimbark.uchicago.edu (Brad Morris) writes:
- >
- > I have noticed a failure of the sound channel under the following
- > circumstances:
- >
- > My program plays sounds using a simple routine. First it sends a
- > quietCmd to make sure the channel has stopped playing (important because
- > this is a game and the sound has to be cut off to let the next sound play).
- > Next, I send a bufferCmd with a pointer to my sampled sound. So far so
- > good. Everything works until I try to jam too many of these at a single
- > time. This is caused by the user pressing multiple keys on the keyboard
- > at once. If I try to jam things too tightly, the channel stops playing
- > sounds. If I examine the channel when this has happened, I find that the
- > flags field is always set to 7 and qHead and qTail point to appropriate
- > sounds which should be playing but are not. What I ended up doing is to
- > check for flag=7 and something in the buffer (qHead > -1) and deallocating
- > and reallocating the sound channel if this happens. This seems to work.
- > This leaves me with two good questions. Is there any place that the SndChannel
- > structure is well documented (not just used internally stuff). And two, has
- > anyone else seen this and what did they do. Is there something less drastic
- > than allocation/deallocation?
-
- You should not be assuming the flags are going to be set to anything.
- It will certainly be changing in the next release of the Sound Manager.
- (I don't know when that is, but it will change the flags.)
-
- All of the structures that can be used by programmers are documented.
- The others are reserved for Apple's use only.
-
- There isn't enough information in your message, but if you attempt to send
- a bufferCmd using SndDoImediate while a buffer is still playing, the
- System 7.0 Sound Manager will ignore the new buffer. What you have to do
- to cancel a sound and start a new one is this:
-
-
- while a sound is playing....
-
- SndDoImmediate(flushCmd)
- SndDoImmediate(quietCmd)
- SndDoCommand(bufferCmd)
-
- - --- or ---
-
- while a sound is playing
-
- SndDoImmediate(flushCmd)
- SndDoImmediate(quietCmd)
- while SndChannelStatus == noErr and not scBusy
- SndDoImmediate(bufferCmd)
-
- Both of these examples are functionally the same.
-
-
-
- - -----------------------------------------------------------------------
- Jim Reekes, Polterzeitgeist | Macintosh Toolbox Engineering
- | Sound Manager Expert
- Apple Computer, Inc. | "All opinions expressed are mine, and do
- 20525 Mariani Ave. MS: 81-KS | not necessarily represent those of my
- Cupertino, CA 95014 | employer, Apple Computer Inc."
-
-
-
- ---------------------------
-
- Subject: Looking for Showinit
- From: fren007@csc.canterbury.ac.nz
- Date: 29 May 92 16:26:56 +1200
- Organization: University of Canterbury, Christchurch, New Zealand
-
- In Technote 247, Pete Helme writes :
-
- >The ShowINIT icon mechanism that was popularized
- >by Paul Mercer is great. In fact, we encourage it's use
- >and we gladly give out the ShowINIT MPW object file, with
- >installation help, to anyone who asks for it.
-
- Can anyone send me this object file, or the source code for
- this routine, or suggest where I might find it ? I don't
- know how to contact Apple DTS by Email.
-
- Thanks,
- Ken Allott.
-
- +++++++++++++++++++++++++++
-
- From: absurd@applelink.apple.com (Tim Dierks, software saboteur)
- Date: 30 May 92 21:28:05 GMT
- Organization: MacDTS Misfits
-
- In article <1992May29.162656.5266@csc.canterbury.ac.nz>, fren007@csc.canterbury.ac.nz writes:
- >
- > In Technote 247, Pete Helme writes :
- >
- > >The ShowINIT icon mechanism that was popularized
- > >by Paul Mercer is great. In fact, we encourage it's use
- > >and we gladly give out the ShowINIT MPW object file, with
- > >installation help, to anyone who asks for it.
- >
- > Can anyone send me this object file, or the source code for
- > this routine, or suggest where I might find it ? I don't
- > know how to contact Apple DTS by Email.
-
- I'm including the source and object below. I think this code
- is of great use to a reasonably large number of people and
- that the source can be pretty educational; among other things,
- it shows how to use QuickDraw at INIT time and how to plot
- System 7-style color icons manually (useful under System 6);
- that's why I'm posting it directly.
-
- Enjoy;
- Tim Dierks
- MacDTS, but I speak for the trees
-
- (This file must be converted with BinHex 4.0)
- - -8rF%N!$KlRPrh3p$BhFAi$d'UrE+3PVLlaTGp'hJ$3j)3R$J`SXK!@HSh"6'A!E
-